package top.lfyao.designpattern.details.adapter.exmple;

public class translator extends Player{
    private ForeignCenter foreignCenter=new ForeignCenter();


    public translator(String name) {
        super(name);
        foreignCenter.setName(name);
    }

    @Override
    public void attack() {
        foreignCenter.进攻();
    }

    @Override
    public void defense() {
        foreignCenter.防守();
    }
}
